package com.derbysoft.dswitch.adapter.ihg.webservice.handler;

import com.derbysoft.dswitch.adapter.ihg.webservice.impl.AccountProvider;
import com.derbysoft.dswitch.adapter.ihg.webservice.impl.RequestPair;
import com.derbysoft.dswitch.adapter.ihg.webservice.impl.ResponsePair;

import java.util.List;

public interface WebServiceHandler<RQ, RS> {

    RS invoke(RQ request, boolean serveReservation, AccountProvider accountProvider);

    List<ResponsePair<RQ, RS>> batchInvoke(List<RequestPair<RQ>> requests, AccountProvider accountProvider);
}
